package wondersgroup.hsswidget.scroll;

import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;

import wondersgroup.hsswidget.R;

/**
 * <b>Project:</b> MyView<br>
 * <b>Create Date:</b> 2016/10/20 0020<br>
 * <b>Author:</b> huang saisai <br>
 * <b>Description:</b> <br>
 */
public class DiscrollLinearLayout extends LinearLayout {
    public DiscrollLinearLayout(Context context) {
        this(context, null);
    }

    public DiscrollLinearLayout(Context context, AttributeSet attrs) {
        this(context, attrs, 0);
    }

    public DiscrollLinearLayout(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
//        TypedArray ta = context.getTheme().obtainStyledAttributes(attrs, R.styleable.d)
    }

    @Override
    public void addView(View child, int index, ViewGroup.LayoutParams params) {
//        super.addView(child, index, params);
        MyLayoutParams p = (MyLayoutParams) params;
        DiscrollViewGroup discrollViewGroup = new DiscrollViewGroup(getContext());
//        discrollViewGroup.setd
    }


    @Override
    public MyLayoutParams generateLayoutParams(AttributeSet attrs) {
        return new MyLayoutParams(getContext(),attrs);
    }


    class MyLayoutParams extends LayoutParams{

        public MyLayoutParams(Context c, AttributeSet attrs) {
            super(c, attrs);
        }
    }
}
